package com.mars.common.expetion;

/**
 * @description: 异常错误码
 * @author: YUAN YONG
 * @create: 2019-07-11
 **/

public class Code {


    //1. 系统级代码9开头
    //2. 店铺代码100开头
    //3. App用户端300开头
    /**
     * 未登录
     */
    public static final Integer NO_LOGIN = 999;


    /**验证码错误**/
    public static final int SMS_CODE_ERROR = 996;

    /**token已过期或无效*/
    public static final int TOKEN_ILLEGAL_EXCEPTION = 995;
    /**
     * 实体已存在
     */
    public static final int ENTITY_EXIST_EXCEPTION =994;
    /**实体没找到**/
    public static final int ENTITY_NOT_FOUND=993;

    public static final int FIELD_NULL=997;

    /**无效非法的参数*/
    public static final int INVAILD_PARAM_EXCEPTION = 992;
    /**
     * 订单状态非法
     */
    public static final int ORDER_INVAILD_STATUS_EXCEPTION = 991;

    /**鲸豆余额不足**/
    public static final int JD_NOTSUFFICIENTFUNDS = 970;
    /**KTO余额不足**/
    public static final int KTO_NOTSUFFICIENTFUNDS  = 971;


    /**系统提示**/
    public static final int SYS_TIP = 988;

    /**账号被锁定**/
    public static final int ACCOUNT_LOCK = 980;
    /**账号不存在**/
    public static final int ACCOUNT_NOT_FOUND = 981;
    /**密码错误**/
    public static final int PASSWORD_ERROR = 982;



    /**无权限**/
    public static final int NOT_PERMISSION = 990;
    
    /**
     * 库存不足
     */
    public static final int STOCK_NOT_ENOUGH = 991;

    
    /**店铺已存在(一个营业执照一个店)**/
    public static final int STORE_EXIST = 101;
    
    

    /**店铺状态不正常**/
    public static final int STORE_STAUTS_NOT_NORMAL = 102;

    /**店铺未注册**/
    public static final int STORE_NOT_OPEN = 112;

    /**线下支付扫码异常**/
    public static final int OFFLINESTORERISK = 103;

    /**
     * 子账号过多
     */
    public static final int SUB_ACCOUNT_TOO_MUCH = 104;

    public static final int SUB_ACCOUNT_EXCEPTION = 105;

    /***
     * 店铺不存在
     */
    public static final int STORE_NOT_EXIST = 106;

    /**没有传递地理位置信息**/
    public static final int NOT_LOCATION_PARAMTER = 300;

    /**
     * 购买上限
     */
    public static final int BUY_LIMIT = 301;


    /**
     * 一级分类不能设置标签
     */
    public static final int CATEGORY_L1_CAN_NOT_SET_TAG = 103;

    /***
     * KTO钱包异常
     */
    public static final int KTO_SERVER_EXCEPTION = 560;


    /**
     * 索引 700开始
     */

    public static final int ES_INDEX_EXISTS = 700;

    public static final int ES_EXCEPTION = 701;
    
    /**
     * 桌台存在未支付的订单
     */
    public static final int STORE_ROOM_EXISTS_UNPAY_ORDER = 702;
    
    /**
     * 已经全额退款
     */
    public static final int ALLREADY_REFUNDED_ALL = 710;

}
